package com.bijiawang.user.config;

import com.bijiawang.user.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.UnsupportedEncodingException;

@Controller
public class EmailController {

    @Autowired
    EmailService emailService;

    @GetMapping("/sendEmail")
    public void sendEmail(String email) throws UnsupportedEncodingException {
        emailService.sendEmail(email);
    }
}
